Activity Diagram for LinkedIn
Create some activity diagrams for the LinkedIn problem.
We'll cover the following
Activity diagrams are a great way to visualize the flow of messages from one activity to the other in the system. There can be different activity diagrams that we can create for LinkedIn. In this lesson, we’ll create activity diagrams for the following two activities:
Creating a new post
Activity challenge: A user creates a page.
Creating a new post#
The states and actions that will be involved in this activity diagram are provided below.
States#
Initial state: The user selects the new post option.
Final state: The post is published.
Actions#
The user selects the new post option, selects the privacy option, adds any attachments, and publishes the post.
Activity challenge: A user creates a page#
You’ll help us create an activity diagram of a user creating a page. A skeleton of the activity diagram is given below:
Notice that the actions in the diagram above are numbered from 1 to 10. The slots below represent the activities, and the arrows represent the flow from one activity to the other.
Can you rearrange the slots below in the correct order they should appear in the activity diagram given above?
Note: If you are unsure, click the “Show Solution” button to check the correct answer.
Alternatively, you can click the "Show complete diagram" button below to see the complete activity diagram.
We've looked at some of the activity diagrams of LinkedIn. In the next lesson, we will present the code for our designed classes in some of the most popular languages.
Sequence Diagram for LinkedIn
Code for LinkedIn